package common;

public class AuctionMatch implements Sendable {
	private static final long serialVersionUID = 8032237552095662350L;


	public final Auction original;
	public final Auction matchedWith;
	
	public AuctionMatch( Auction original, Auction matchedWith ) {
		this.original = original;
		this.matchedWith = matchedWith;
	}

	public String getType() {
		return "AuctionMatch";
	}
	public String toString() {
		String s = original.ownerName + " - " + matchedWith.ownerName;
		s = s + "  $" + AllTheEvilsOfThisWorld.obfuscateNumber(original.getMatchPrice(matchedWith)) + "  " + original.quantity + " Units";
		return s;
	}
}
